﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SistemaDeBastanteodePoderes.Dominio.Representante>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>CREAR REPRESENTANTE</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Datos</legend> 

            <div class="editor-label">Cliente</div>
            <div class="editor-field"> 
                <%: Html.DropDownList("TipoCli", (IEnumerable<SelectListItem>)TempData["tipoCliente"])%>
            </div>

            <div class="editor-label">Tipo Documento</div>
            <div class="editor-field"> 
                <%: Html.DropDownList("TipoDoc", (IEnumerable<SelectListItem>)TempData["tipoDocumento"])%>
            </div>


            <div class="editor-label">N°Documento</div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NroDoc) %>
                <%: Html.ValidationMessageFor(model => model.NroDoc) %>
            </div>
            
            <div class="editor-label">Nombres</div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombres) %>
                <%: Html.ValidationMessageFor(model => model.Nombres) %>
            </div>
            
            <div class="editor-label">Apellidos</div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Apellidos) %>
                <%: Html.ValidationMessageFor(model => model.Apellidos) %>
            </div>
            
            <div class="editor-label">Cargo</div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Cargo) %>
                <%: Html.ValidationMessageFor(model => model.Cargo) %>
            </div>
            
            <div class="editor-label">Grupo de Bastanteo</div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.GruBastanteo) %>
                <%: Html.ValidationMessageFor(model => model.GruBastanteo) %>
            </div>
            
            <p><input type="submit" value="Create" /></p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index") %>
    </div>

</asp:Content>

